package com.sakura.java8.lambda.service.impl;

import com.sakura.java8.lambda.pojo.Employee;
import com.sakura.java8.lambda.service.MyPredicate;

/**
 * @Author Sakura
 * @Date 2022/11/7 11:57
 * @Version 1.0
 */
public class FilterEmployeeForAge implements MyPredicate<Employee> {
    @Override
    public boolean test(Employee employee) {
        return employee.getAge() <= 35;
    }
}
